import numpy as np
import matplotlib.pyplot as plt

# 1/(1+e^-t)
# 假设预测值为-10,10区间内的连续值
ys = np.linspace(-10,10,200)
res = 1 / (1 + np.e**-ys)
plt.plot(ys,res)
plt.show()